package com.nymph.executor.statement;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @Description: This is a sample class.
 * @Author: Simon
 */
public interface StatementHandler {
    // sql预处理
    PreparedStatement prepare(Connection paramConnection) throws SQLException;

    ResultSet query(PreparedStatement preparedStatement) throws SQLException;

    void update(PreparedStatement preparedStatement) throws SQLException;
}
